//
//  BaseModel.h
//  Parson
//
//  Created by lanou3g on 16/5/4.
//  Copyright © 2016年 Mango. All rights reserved.
//

#import <Foundation/Foundation.h>

/**
 *  八卦-互动 cell工厂
 */
@interface BaseModel : NSObject


/**
 *  信息的唯一标识id，用于点击跳转
 */
@property (assign, nonatomic) NSInteger ID;
/**
 *  详情网址
 */
@property (strong, nonatomic) NSString *urlroute;
/**
 *  新闻标题
 */
@property (strong, nonatomic) NSString *title;
/**
 *  图片的网址
 */
@property (strong, nonatomic) NSString *pic;
/**
 *  图片类型
 */
@property (assign, nonatomic) NSInteger icontype;
/**
 *  发布时间
 */
@property (strong, nonatomic) NSString *publish_time;
/**
 *  阅读人数
 */
@property (assign, nonatomic) NSInteger readnum;
/**
 *  评论人数
 */
@property (assign, nonatomic) NSInteger replynum;
/**
 *  详情页为视频
 */
@property (strong, nonatomic) NSDictionary *live;

/**
 *  分类cat[@"name"]
 */
@property (strong, nonatomic) NSDictionary *cat;
/**
 *  作者 author[@"name"]
 */
@property (strong, nonatomic) NSDictionary *author;


+ (instancetype)baseModelWithDictionary:(NSDictionary *)dict;
- (CGFloat)cellHeight;
@end
